package com.pandi.springbootinfluxdb.v01;

/**
 * @author pandi
 * @create 2021-04-16 9:45
 */

//@Component
//@Data
//@PropertySource(value = {"classpath:influx.yml"}, factory = PropertySourceFactory.class)
//@ConfigurationProperties(prefix = "influx")
public class InfluxDBEntity {

    private String url;

    private String user;

    private String password;

    private String database;

    private String retentionPolicy;

//    @Bean
    public InfluxDBConnection influxDBConnection(){
         return new InfluxDBConnection(user,password,url,database,retentionPolicy);
    };




}
